package de.koller.occultation.engine.tile;

import de.koller.occultation.ONode;
import de.koller.occultation.OccultationStart;

public class TileMap extends ONode {
	
	private int tx = 0, ty = 0;
	public final Tile[][] map = new Tile[ OccultationStart.WIDTH / OccultationStart.TILE_SIZE ]
										 [OccultationStart.HEIGHT / OccultationStart.TILE_SIZE];

	public TileMap() {
		for( int x = 0; x < map.length; x++ )
			for( int y = 0; y < map[0].length; y++ )
				map[x][y] = new Tile();
	}
	
	public Tile getTile( int x, int y ) {
		return map[ x - tx ][ y - ty ];
	}
}
